﻿using System;
namespace Pay.DTO.xsft3 {
	/// <summary>
	/// 商户进件请求
	/// </summary>
	public class merchant_req : xsft3_req_base {
		public merchant_req() {
			accType = "00";
			certType = "01";
			merOrderId = DateTime.Now.ToString("yyyyMMddHHmmssffff") + DtoHelper.RandCode(6);
			orgMerNo = merOrderId;
			TopFee = "55";
		}
		/// <summary>
		/// 操作标识A：新增 M02:修改结算卡信息 M03:初始配置商户费率 M04:修改费率 M05:上传照片 M06 商户信息查询
		/// </summary>
		public string operFlag { get; set; }
		/// <summary>
		/// 子商户号
		/// </summary>
		public string merCode { get; set; }
		/// <summary>
		/// 机构商户号(机构自定义编码，请每个商户保持唯一便于接口查询) operFlag = A新增时必填
		/// </summary>
		public string orgMerNo { get; set; }
		/// <summary>
		/// 商户订单号
		/// </summary>
		public string merOrderId { get; set; }
		/// <summary>
		/// 用户联系手机
		/// </summary>
		public string userPhone { get; set; }
		/// <summary>
		/// 商户名称 比如xxx个体xxx餐饮，禁止使用App品牌名称
		/// </summary>
		public string fullName { get; set; }
		/// <summary>
		/// 商户简称:比如xxx个体户
		/// </summary>
		public string simpleName { get; set; }
		/// <summary>
		/// 证件类型01：身份证
		/// </summary>
		public string certType { get; set; }
		/// <summary>
		/// 结算户名
		/// </summary>
		public string accountName { get; set; }
		/// <summary>
		/// 银行名称
		/// </summary>
		public string bankName { get; set; }
		/// <summary>
		/// 联行号
		/// </summary>
		public string bankCode { get; set; }
		/// <summary>
		/// 结算卡号
		/// </summary>
		public string accountNo { get; set; }
		/// <summary>
		/// 账户类型
		/// 对私传 00 
		/// 对公传 01
		/// </summary>
		public string accType { get; set; }
		/// <summary>
		/// 省份
		/// </summary>
		public string merProvice { get; set; }
		/// <summary>
		/// 城市
		/// </summary>
		public string merCity { get; set; }
		/// <summary>
		/// 区/县(国标地区代码
		/// </summary>
		public string merDistrict { get; set; }
		/// <summary>
		/// 经营地址
		/// </summary>
		public string address { get; set; }
		/// <summary>
		/// 银行预留手机号
		/// </summary>
		public string bankmobile { get; set; }
		/// <summary>
		/// 身份证号
		/// </summary>
		public string certId { get; set; }
		/// <summary>
		/// 无积分费率，默认为渠道费率。如果需要高签，则必传。“0.003” 代表费率千分之3
		/// </summary>
		public string Rate { get; set; }
		/// <summary>
		/// 无积分提现费，默认为渠道费率。如果需要高签，则必传。固定值单位：分
		/// </summary>
		public string Fee { get; set; }
		/// <summary>
		/// 积分通道费率，默认为渠道费率。如果需要高签，则必传。“0.003” 代表费率千分之3
		/// </summary>
		public string scoreRate { get; set; }
		/// <summary>
		/// 积分通道提现费，默认为渠道费率。如果需要高签，则必传。固定值单位：分
		/// </summary>
		public string scoreFee { get; set; }
		/// <summary>
		/// 封顶通道费率 默认 55元
		/// </summary>
		public string TopFee { get; set; }
	}

	/// <summary>
	/// 商户进件修改卡请求
	/// </summary>
	public class merchant_edit_m2 : xsft3_req_base {
		public merchant_edit_m2() {
			operFlag = "M02";
			certType = "01";
		}
		/// <summary>
		/// 操作标识 A：注册新增 M02:修改结算卡信息 M03:初始配置商户费率 M04:修改费率 M05:上传照片 M06 商户信息查询
		/// </summary>
		public string operFlag { get; set; }
		/// <summary>
		/// 子商户号
		/// </summary>
		public string merCode { get; set; }
		/// <summary>
		/// 商户名称 比如xxx个体xxx餐饮，禁止使用App品牌名称
		/// </summary>
		public string fullName { get; set; }
		/// <summary>
		/// 商户简称:比如xxx个体户
		/// </summary>
		public string simpleName { get; set; }
		/// <summary>
		/// 省份
		/// </summary>
		public string merProvice { get; set; }
		/// <summary>
		/// 城市
		/// </summary>
		public string merCity { get; set; }
		/// <summary>
		/// 区/县(国标地区代码)
		/// </summary>
		public string merDistrict { get; set; }
		/// <summary>
		/// 经营地址
		/// </summary>
		public string address { get; set; }
		/// <summary>
		/// 证件类型01：身份证
		/// </summary>
		public string certType { get; set; }
		/// <summary>
		/// 银行预留手机号
		/// </summary>
		public string bankmobile { get; set; }
		/// <summary>
		/// 身份证号
		/// </summary>
		public string certId { get; set; }
		/// <summary>
		/// 结算卡号
		/// </summary>
		public string accountNo { get; set; }
		/// <summary>
		/// 结算户名
		/// </summary>
		public string accountName { get; set; }
		/// <summary>
		/// 银行名称
		/// </summary>
		public string bankName { get; set; }
		/// <summary>
		/// 联行号
		/// </summary>
		public string bankCode { get; set; }
	}

	/// <summary>
	/// 商户进件修改费率请求
	/// </summary>
	public class merchant_edit_m4 : xsft3_req_base {
		public merchant_edit_m4() {
			operFlag = "M04";
		}
		/// <summary>
		/// 操作标识A：注册新增 M02:修改结算卡信息 M03:初始配置商户费率 M04:修改费率 M05:上传照片 M06 商户信息查询
		/// </summary>
		public string operFlag { get; set; }
		/// <summary>
		/// 子商户号
		/// </summary>
		public string merCode { get; set; }
		/// <summary>
		/// 无积分费率，默认为渠道费率。如果需要高签，则必传。“0.003” 代表费率千分之3
		/// </summary>
		public string Rate { get; set; }
		/// <summary>
		/// 无积分提现费，默认为渠道费率。如果需要高签，则必传。固定值单位：分
		/// </summary>
		public string Fee { get; set; }
		/// <summary>
		/// 积分通道费率，默认为渠道费率。如果需要高签，则必传。“0.003” 代表费率千分之3
		/// </summary>
		public string scoreRate { get; set; }
		/// <summary>
		/// 积分通道提现费，默认为渠道费率。如果需要高签，则必传。固定值单位：分
		/// </summary>
		public string scoreFee { get; set; }
		/// <summary>
		/// 封顶通道费率 默认 55元
		/// </summary>
		public string TopFee { get; set; }
	}
	/// <summary>
	/// 商户进件修改上传照片
	/// </summary>
	public class merchant_edit_m5 : xsft3_req_base {
		public merchant_edit_m5() {
			operFlag = "M05";
		}
		/// <summary>
		/// 操作标识A：注册新增 M02:修改结算卡信息 M03:初始配置商户费率 M04:修改费率M05:上传照片 M06 商户信息查询
		/// </summary>
		public string operFlag { get; set; }
		/// <summary>
		/// 子商户号
		/// </summary>
		public string merCode { get; set; }
		/// <summary>
		/// 手持身份证照BASE64
		/// </summary>
		public string CardHandle { get; set; }
		/// <summary>
		/// 身份证正面照片BASE64
		/// </summary>
		public string CardFront { get; set; }
		/// <summary>
		/// 身份证反面照片BASE64
		/// </summary>
		public string CardBack { get; set; }
		/// <summary>
		/// 手持结算卡照片BASE64
		/// </summary>
		public string bankHandle { get; set; }
		/// <summary>
		/// 结算银行卡正面照片BASE64
		/// </summary>
		public string bankFront { get; set; }
		/// <summary>
		/// 结算银行卡反面照片BASE64
		/// </summary>
		public string bankBack { get; set; }
	}
	/// <summary>
	/// 商户信息查询
	/// </summary>
	public class merchant_edit_m6 : xsft3_req_base {
		public merchant_edit_m6() {
			operFlag = "M06";
		}
		/// <summary>
		/// 操作标识A：注册新增 M02:修改结算卡信息 M03:初始配置商户费率 M04:修改费率M05:上传照片 M06 商户信息查询
		/// </summary>
		public string operFlag { get; set; }
		/// <summary>
		/// 子商户号
		/// </summary>
		public string merCode { get; set; }
	}

	/// <summary>
	/// 进件响应
	/// </summary>
	public class merchant_resp : xsft3_resp_base {
		/// <summary>
		/// 商户号
		/// </summary>
		public string data { get; set; }

#region 以下仅当operFlag=M06时返回
		/// <summary>
		/// 子商户号
		/// </summary>
		public string merCode { get; set; }
		/// <summary>
		/// 结算账号名称
		/// </summary>
		public string accountName { get; set; }
		/// <summary>
		/// 卡号
		/// </summary>
		public string accountNo { get; set; }
		/// <summary>
		/// 银行预留手机号
		/// </summary>
		public string bankmobile { get; set; }
		/// <summary>
		/// 身份证件号码
		/// </summary>
		public string certId { get; set; }
		/// <summary>
		/// 费率。“0.003” 代表费率千分之3
		/// </summary>
		public string Rate { get; set;}
		/// <summary>
		/// 额外费用。固定值单位：分
		/// </summary>
		public string Fee { get; set; }
		/// <summary>
		/// 积分通道费率，默认为渠道费率。如果需要高签，则必传。“0.003” 代表费率千分之3
		/// </summary>
		public string scoreRate { get; set; }
		/// <summary>
		/// 积分通道提现费，默认为渠道费率。如果需要高签，则必传。固定值单位：分
		/// </summary>
		public string scoreFee { get; set;}
#endregion
	}
}
